<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>上传标准学生数据表</title>
<script  type="text/javascript">
  function check_upload(theform)
	{
		var filename = document.getElementById("filename").value;
		if(filename == "" ||filename == null || filename.indexOf(".xlsx")==-1){
		alert('只能上传.xlsx文件');
		return false;
		}
	}
  </script>
<style>
#header {
    color:white;
    text-align:center;
    padding:5px;	 
}
.ui-upload {
      height: 30px;
      width: 80px;
      background-color: #00abff;
      font-size: 14px;
      line-height: 30px;
      cursor: pointer;
      display: inline-block;
      text-align: center;
      color: #fff;
      border-radius: 3px;
      margin-left: 20px;
      border-top-style: none;
    }
.inputbut{
	background: #FF6805;
	border:0px;
	height:30px;
	width:110px;
}


#standard {  
  display: -webkit-flex;  
  -webkit-justify-content: center;  
  -webkit-align-items: center;  
  padding:100px;
}
#footer {
    color:white;
    clear:both;
    text-align:center;
    width: 100%;
	height: 50px;
	position: fixed;
	bottom: 0;
}

</style>
</head>
<body>
<div style="position:absolute;z-index:-1;width:100%;height:100%;">
    	<img src="img/2.jpg" width="100%" height="100%" />
</div>

<div id="header">
<h1>多源教学数据管理系统</h1>
</div>

<div id="standard">
<h2>放入成绩文件</h2>

<form action="UploadServlet" enctype="multipart/form-data" name="fileUploadForm"method="post"onsubmit="return check_upload(this)"><br>
	<input type="file" name="docFile" id="docFile" style="display: none;" onchange="document.fileUploadForm.filePath.value=this.value"/>　
	<input type="text"  name="filePath" id="filePath" style="width:200px; height:20px;"/>
	<input type="button" value="浏览" onclick="document.fileUploadForm.docFile.click()"class="inputbut"/>
	<input type="submit" value="提交" class="inputbut"/>
	<input type="button" value="已经全部上传" onclick="javascript:window.location='SetWeight.jsp';" class="inputbut"/>
</form>
</div>


<div id="footer">
Copyright@网络1712 419
</div>
</body>
</html>